package com.my.study.designPatterns.factoryPattern;

public class PizzTestDrive {

    public static void main(String[] args) {

        PizzaFactory nyFactory = new NYPizzaFactory();
        PizzaFactory chicagoFactory = new ChicagoPizzaFactory();

        Pizza pizza = nyFactory.orderPizza(1);
        System.out.println("Ethan ordered a " + pizza.name + "\n");
        Pizza pizza1 = chicagoFactory.orderPizza(1);
        System.out.println("Joel ordered a " + pizza1.getName());
    }
}
